package ai.people.netmon.framework.domain.archives.vo;

import ai.people.netmon.framework.domain.archives.entity.ClueShareRecordArchives;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zhenglin
 * @date 2022/5/31
 */
@Data
@NoArgsConstructor
public class ClueSharedRecordListVO {

    /**
     * 分享时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date shareTime;

    /**
     * 档案姓名的第一个
     */
    private String archivesName;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 操作人名字
     */
    private String operatorName;


    public ClueSharedRecordListVO(ClueShareRecordArchives record) {
        this.shareTime = record.getShareTime();
        this.archivesName = record.buildName();
        this.userName = record.getUserName();
        this.operatorName = record.getOperatorName();
    }
}
